Hello, //MS 2008 R2 setlocal if NOT "%CALLBACK_SCRIPT%"=="" goto :IS_CALLBACK @REM Stop DOORS DB service. net stop "DOORS DB Server 9.3 00001" @REM Get the source and destination paths. set SOURCE_VOLUME="E:\Sandbox\auto\data" set DESTINATION_VOLUME="E:\Sandbox\BK\data" set CALLBACK_SCRIPT=%~dpnx0 set TEMP_GENERATED_SCRIPT=GeneratedVarsTempScript.cmd @REM Remove any existing snapshots of your target; you only want a snapshot of the db as it is now. %~dp0\vshadow.exe -do=%SOURCE_VOLUME% @REM Create the snapshot. %~dp0\vshadow.exe -nw -p -script=%TEMP_GENERATED_SCRIPT% -exec=%CALLBACK_SCRIPT% %SOURCE_VOLUME% del /f %TEMP_GENERATED_SCRIPT% @goto :EOF :IS_CALLBACK setlocal call %TEMP_GENERATED_SCRIPT% %~dp0\vshadow.exe -el=%SHADOW_ID_1%,%DESTINATION_VOLUME% @REM Restart DOORS DB server. net start "DOORS DB Server 9.3 00001"
SystemAdmin - Thu Apr 04 17:19:45 EDT 2013 |